//
//  TTAPI+User.swift
//  TTBLL
//
//  Created by Toj on 5/11/21.
//

import Foundation

extension TTAPIRequest.API {
   
    /// 用户信息
    static var userInfo: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/userInfo/info")
    }
    
    /// 修改用户信息
    static var updateUserInfo: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/userInfo/update")
    }
    
    /// 是否关注二维码
    static var checkQrCodeStatus: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/userInfo/v1.0/checkVipcodeUserStatus")
    }
    
    /// 获取二维码
    static var getQrCode: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/user/getLearnCenterQrcodeTicket")
    }
    
    /// 配置信息 - 版本, ...
    static var getConfigInfo: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/pad/client/v1.0/queryConfigInfo")
    }
    
    // 版本更新
    static var versionUpgrade: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/vts_v1/config/versionUpdate")
    }
    
    /// 版本信息, 废弃使用1v1版本升级 - versionUpgrade
    @available(*, deprecated, message: "use 1v1 version upgrade - versionUpgrade")
    static var checkVersion: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/common/c/v1.0/checkVersion")
    }
    
    /// 版本信息, 废弃使用1v1版本升级
    @available(*, deprecated, message: "use 1v1 version upgrade - versionUpgrade")
    static var macChannelCheckVersion: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/common/c/v1.0/macChannelCheckVersion")
    }
    
    /// 设备检测打点
    static var deviceCheckReport: TTAPIRequest.API {
        return TTAPIRequest.API(rawValue: "/c/device/deviceCheckReport")
    }
}

extension TTAPI.Request {
  
}
